<div class="one_wrap">
<div class="widget">
    <div class="widget_title"><span class="iconsweet">&</span>
        <h5><?= $this->title; ?></h5>
    </div>
    <div class="widget_body">            
        <? if (isset($this->users)): ?>
            <table border="0" width="100%" class="activity_datatable" cellspacing="0" cellpadding="8">
                <tr>
                    <th width="10%">ID:</th>
                    <th width="40%">Display Name:</th>
                    <th width="20%">Email:</th>
                    <th width="20%">Date:</th>
                    <th width="20%">Mod:</th>
                </tr>
                <? foreach ($this->users as $user) :?>
                <tr>
                    <td>
                        <?= $user->user_id; ?>
                    </td>
                    <td>
                        <a href="<?= $this->url(array(
                            'controller'    => 'users',
                            'action'        => 'view',
                            'id'            => $user->user_id
                            ))?>"> <?= $user->user_name; ?> <?= $user->user_surname;?> </a>
                    </td>
                    <td>
                        <?= $user->user_email; ?>
                    </td>
                    <td>
                        <?= date('d/m/Y H:i:s',$user->user_creation_date); ?>
                    </td>
                    <td>
                        <span class="data_actions iconsweet">
                            <a class="tip_north" original-title="Колдонуучу" href="<?= $this->url(array(
                            'controller'    => 'users',
                            'action'        => 'index',
                            'id'            => $user->user_id
                            ))?>">a</a> 
                            <a class="tip_north" original-title="Оңдоо" href="<?= $this->url(array(
                            'controller'    => 'users',
                            'action'        => 'edit',
                            'id'            => $user->user_id
                            ))?>">C</a> 
                            <a class="tip_north" original-title="Кирүү мүмкүнчүлүгүн чектөө" href="<?= $this->url(array(
                            'controller'    => 'users',
                            'action'        => 'delete',
                            'id'            => $user->user_id
                            ))?>">X</a>
                        </span>
                    </td>
                </tr>
                <? endforeach;?>
            </table>
        <? else: ?>
        <p> Пользователей пока нет </p>
        <? endif; ?>
    </div>
</div>
</div>